package com.nanychuan.blogbase.exception;

/**
 * @author 往
 * 异常枚举
 */
public enum  BlogEnums {

    //用户登录模块显示的异常提示
    USER_LOGIN_CODE("001","验证码输入错误"),
    USER_LOGIN_USER("002","用户名或密码输入错误"),
    USER_UPDATE_PASSWORD("003","旧密码输入错误"),
    USER_UPDATE_INFORMATION("004","修改用户信息失败"),
    ARTICLE_UPDATE_ISOPEN("005","修改文章是否公开失败"),
    ARTICLE_PUNISH("006","发布文章失败"),
    ARTICLE_UPDATE("007","修改文章失败"),
    ARTICLE_DELETE("008","删除文章失败");

    //错误消息代号
    private String typeCode;
    //具体错误消息
    private String message;

    BlogEnums(String typeCode, String message) {
        this.typeCode = typeCode;
        this.message = message;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
